<?php echo $header; ?><?php echo $column_left; ?><?php echo $column_right; ?>
<div id="content"><?php echo $content_top; ?>
  <div class="breadcrumb">
    <?php foreach ($breadcrumbs as $breadcrumb) { ?>
    <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
    <?php } ?>
  </div>
  <h1><?php echo $heading_title; ?></h1>
  <?php echo $description; ?>
  <div id="formа">
   <?php if($consult) {?>
    
     <div id="ermsg" style="color:#900; border:1px solid #900; padding:2%; display:none;"></div>
    <?php if($form == 1) {?>
    
        <h3>ИЗПРАТИ ЗАПИТВАНЕ</h3>
        
        <form>
        <input type="hidden" name="subject" value="Изпратено от <?php echo $breadcrumbs[sizeof($breadcrumbs)-1]['text'];?>" />
          
        Вашето име:<br>
        <input  type="text" value="" style="width:60%;" name="name"><br>
        E-mail:<br>
        <input  type="text" value="" style="width:60%;" name="email"><br><br>
        
        Пол: 
        <label><input type="radio" value="Мъж" name="gender">Мъж</label>
        <label><input type="radio" value="Жена" name="gender">Жена</label>
        
        &nbsp; &nbsp; &nbsp;
        
        Възраст:
        <input maxlength="2" type="text" value="" style="width:30px;" name="age"><br><br>
        
        Оплаквания:<br>
        <textarea name="message" style="width:60%;" rows="6"></textarea><br>
        
        <br>
        
        <a onclick="send_inquiry('<?php echo $_SERVER['SERVER_NAME'];?>','inq'); return false;" class="button" >изпрати</a>
        
        </form>
    <?php } 
		if($form == 2) {?>
			<h3>АБОНИРАЙ СЕ ЗА СЕМИНАР</h3>
		
			<form>
			 <input type="hidden" name="subject" value="Изпратено от <?php echo $breadcrumbs[sizeof($breadcrumbs)-1]['text'];?>" />	
			Вашето име:<br>
			<input type="text" value="" style="width:60%;" name="name"><br>
			E-mail:<br>
			<input type="text" value="" style="width:60%;" name="email"><br><br>
			
			Пол: 
			<label><input type="radio" value="Мъж" name="gender">Мъж</label>
			<label><input type="radio" value="Жена" name="gender">Жена</label>
			
			&nbsp; &nbsp; &nbsp;
			
			Възраст:
			<input maxlength="2" type="text" value="" style="width:30px;" name="age"><br><br>
			
			<br>
			
			<a onclick="send_inquiry('<?php echo $_SERVER['SERVER_NAME'];?>','abn'); return false;" class="button" >изпрати</a>
			
			</form>
    	<?php } ?>
        
   <?php } ?>
  	</div>
    		<?php if($anti){ ?>
    		
            		<?php if($last){ ?>
    					<a class="button" href="<?php echo $last; ?>">Предишна</a>
           			 <?php } ?>
                     
                     <?php if($next){ ?>
    					<a  class="button" href="<?php echo $next; ?>">Следваща</a>
           			 <?php } ?>
            <?php } ?>
    
  			<?php 
             if($consult){
			?>
            	<br /><br />
                 <h5>Препоръчваме също:</h5>
            <?php
             foreach ($consult as $an) { ?>
              
                <a href="<?php echo $an['href']; ?>"><?php echo $an['title']; ?></a><br />

              <?php } 
           }?>
  </div><?php echo $content_bottom; ?>
<?php echo $footer; ?>